<?php

namespace app\api\validate;

use think\Validate;

class Labels extends Validate
{
    protected $rule = [
        ['labels',       'require',                         '请先选择标签'],
        ['types',        'require|number|in:1,2',           '操作有误|操作有误|操作有误'],
    ];

    protected $scene = [
        'edit'           => ['labels', 'types'],
        'myLabels'       => ['types'],
    ];
}
